#ifndef DATAHANDLER_H
#define DATAHANDLER_H

#include <QObject>

class dataHandler : public QObject
{
    Q_OBJECT
public:
    explicit dataHandler(QObject *parent = 0);

signals:
    void tipNew(char value);
    void middleNew(char value);
    void knuckleNew(char value);
    void sweepNew(char value);
    void logMessage(QString message);

public slots:
    void serialData(QByteArray sbytes);

private:
    void fingerParser(char FID);
    QByteArray sArray;
    struct finger{
      unsigned char tip, mid, kncl, swp, chckr;
    };



};

#endif // DATAHANDLER_H
